package com.boot.cluster.worker.runner;

import com.boot.cluster.worker.bean.Node;
import com.boot.cluster.worker.selector.AverageSelector;
import com.boot.cluster.worker.selector.Selector;

import java.util.List;

public abstract class AbstractClusterComputeTask<T, R> implements ClusterComputeTask<T, R> {
    private static final long serialVersionUID = -3225756058867572364L;
    private List<Node> nodes;
    private Selector selector = new AverageSelector();

    public void setClusterNode(List<Node> nodes) {
        this.nodes = nodes;
    }

    public void setSelector(Selector selector) {
        this.selector = selector;
    }

    public void execute() {

    }


}
